Pergunta de entrevista da empresa Infosys

Mostly from Agarwal aptitude book.. question patterns not the same question though