Amazon interview question

Provide a object oriented design for expression evaluator