X interview question

Write a calculator program