Amazon interview question

given a binary tree, return if it's a search tree