Yext Interview Question

Debug code for reordering a descending binary tree