You need to find a given element (integer) in a binary tree. On an unsuccesful search, you need to find the next largest element