def _get_height(node):
    """
    Get height of a tree

    Args:
        node(node): root node
    """
    if node is None:
        return 0
    return max(_get_height(node.left), _get_height(node.right)) + 1