Bank of America Interview Question

Tree problems in data structures