removeWithFormEnd  On算法，AC
removeDuplicateArray 快慢指针，AC