Pregunta de entrevista de Anonymous

Core Java questions, Java8 and streams related