Amazon Interview Question

Related to binary trees and level was leetcode easy to medium