Pergunta de entrevista da empresa Nykaa

java question based on collections