Pregunta de entrevista de Xoriant

In all the interviews rounds they kept asking random question which can be solved using Java 8 streams.