Codingal interview question

about loops and to program calculator.