algo4: twopointers: Remove duplicates from sorted array