Pregunta de entrevista de Nykaa

java question based on collections