Remove duplicate II

iterate right pointer through array;