Infosys interview question

about java 8 features and scenario based