Amazon Interview Question

Implement a binary expression tree