Roku Interview Question

Find if the given tree is a BST