Traveloka Interview Question

Some tree problems medium+ on Leet Code