Topic: Stack Problem / Level: advanced

Problem: Create a function that uses stacks to solve the "Find Longest Zigzag Path in a Binary Tree" problem.

Run the code to see the output here...