AKUNA CAPITAL interview question

two questions about binary tree