LogiCoy Interview Question

java 8 question