Leetcode 1372. Longest ZigZag Path in a Binary Tree | Hello Interview