Uber interview question

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