Domanda di colloquio di Amazon

write a function to determine if a binary tree is an actual BST