ByteDance interview question

Questions about binary tree, better practice them before interviewing.