Capgemini interview question

Write a program that remove duplicates and checks if it is palindrome