Infosys Interview Question

All were puzzles. Difficulty was moderate.