TuSimple Interview Question

write an algorithm to Reverse a Binary tree