remove duplicates from the array
merged conflicts
http://oj.leetcode.com/problems/remove-duplicates-from-sorted-list/