Hexaware Technologies interview question

2. Scenario based questions in Java 8