Accenture interview question

write a program to remove duplicate element from arraylist