K Balanced Binary Tree Example In Python What Is A Function