Pergunta de entrevista da empresa Infosys

Asked some logical puzzles