Balanced Binary Tree - Leetcode 110 - Python