Infosys Interview Question

There were some tricky puzzles.