Given the root of a binary tree, determine the smallest level x with the maximal sum of node values at that level.
Click Run to execute sample tests.