Wells Fargo Interview Question

Related to tree data structure.