existsInBST that takes a root of a BST and a target value, and performs a binary search to find the target value in the BST.existsInBST with the root of the second tree and target - value1.existsInBST returns true, it means a pair has been found, so return true.false.