Leetcode 1245. Tree Diameter | Hello Interview