Deloitte Interview Question

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