Height Of Generic Tree Leetcode Question