Amazon interview question

OO design expression tree