Pergunta de entrevista da empresa Virtusa

programs on java 1.8 and logical question