We wont tell you if you dont try it.. I'll give you a hint though :- you need just two for/while loops to do this...and a if condition to check if its repeated, if it is overwirte the rest of array and repeat this till the end.. Think, else you won't undestand what is programming if we just tell you how to...