Meta interview question

First round: check if one binary tree is a bst.