Infosys interview question

Mostly they will ask puzzles and basic C++/C programms.