Infosys Interview Question

To code on a board.