Infosys interview question

Java8 Features and stream api questions