Python solution
\nclass Solution(object):\n    def searchBST(self, root, val):\n        """\n        :type root: TreeNode\n        :type val: int\n        :rtype: TreeNode\n   
```\nclass Solution(object):\n    def searchBST(self, root, val):\n        """\n        :type root: TreeNode\n        :type val: int\n        :rtype: TreeNode\n        """\n        trav = root\n        while trav:\n            if trav.val == val:\n                return trav\n            elif trav.val < val:\n                trav = trav.right\n            else:\n                trav = trav.left\n```
[]