[LintCode] Remove Duplicates from Sorted Array