Pregunta de entrevista de Tata Consultancy Services

code to do iteration using java streams