Pregunta de entrevista de Tata Consultancy Services

Different ways of finding same elements in an array