Amazon Interview Question

same tree leetcode question (easy)