Frage im Vorstellungsgespräch bei Tata Consultancy Services

Technical they asked me write code to remove duplicate elements