ByteDance interview question

Leetcdoe 226: reverse a binary tree