OYO interview question

bst, balanced equation check etc