Mphasis Interview Question

related to java 8 question