Infosys interview question

Some aptitude puzzles