Capgemini interview question

Question related to java 8, Spring MVC