Hexaware Technologies Interview Question

2. Scenario based questions in Java 8