def findMax(root): currentNode = root if currentNode == None: return None while currentNode.right != None: currentNode = currentNode.right return currentNode.data