Domanda di colloquio di TradingHub

leetcode question relating to tree search.