Update Array--removeDuplicates.cpp