Bottom view (trees) failing one test case , need help!

check ur code for this input->

20 8 22 5 3 4 25 -1 -1 10 14 -1 -1 -1 -1 -1 -1 -1 -1

expected output->
5 10 4 14 25