Amazon interview question

Low level design for a calculator