Difficulty: Medium
Category: DSA
Topics: Math, Dynamic Programming, Tree, Binary Search Tree, Binary Tree
Asked at: Microsoft, Bloomberg