Pregunta de entrevista de Tata Consultancy Services

Duplicate elements in the list kinda question