Cognizant interview question

All java 8 question