Pergunta de entrevista da empresa Infosys

Question was on Java programming