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