Concept Flow - Remove Duplicates from Sorted Array Two Pointer
Start with two pointers
Pointer1 at index 0
Compare values at Pointer1 and Pointer2
Repeat until Pointer2 reaches end
Return length = Pointer1 + 1
Use two pointers to scan the array. One pointer tracks unique elements, the other scans ahead to find new unique values to copy forward.