Uber Interview Question

Leet code question. 2nd least number in a tree.