Pergunta de entrevista da empresa Infosys

asked 3 different puzzles.two of them were easy...third was difficult could not answer