Pregunta de entrevista de Tata Consultancy Services

1. How to remove duplicates from array and print array