Wells Fargo interview question

Related to tree data structure.