Amazon Interview Question

Had trouble with binary tree question, but should be easy with more preparation