Micron Technology interview question

code for generation of calculator