Pergunta de entrevista da empresa Tata Consultancy Services

Array problem to duplicate number removal