Pregunta de entrevista de Virtusa

programs on java 1.8 and logical question