Pregunta de entrevista de Tata Consultancy Services

Array problem to duplicate number removal