How to solve Leetcode 80. Remove Duplicates from Sorted Array II