Infosys interview question

All were puzzles. Difficulty was moderate.