Pergunta de entrevista da empresa Tata Consultancy Services

1. How to remove duplicates from array and print array