Pergunta de entrevista da empresa Advanced Bionics

How would you go about writing a program that stores the values entered and processed in a calculator?