Diameter Of Binary Tree Leetcode Python