ByteDance interview question

Binary Tree, Forward search, backward search.