Deloitte interview question

mostly from java and java8 and then spring boot and code from java 8