Pergunta de entrevista da empresa Tata Consultancy Services

Technical they asked me write code to remove duplicate elements