Largest value in a tree
Write largest(root) that returns the largest value in a non-empty binary tree. The tree
is not necessarily a search tree.
largest([8, 3, 10, 1, 6, None, 14]) -> 14
largest([5]) -> 5
The point is to practise a recursion that combines with max.
def largest(root):
...