Capgemini Interview Question

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