Infosys interview question

Matematical Problems