https://medium.com/@TechPanda/algo-interview-prep-23-remove-duplicates-from-sorted-array-easy-30cd4f73b2fd