Binary Tree Zigzag Level Order Traversal

Given the root of a binary tree, return its level-order traversal with alternating direction. The root level is listed from left to right, the next level from right to left, and the direction continues to alternate at every depth.

Examples
Input: []
Output: []
Hints

Binary Tree Zigzag Level Order Traversal

Given the root of a binary tree, return its level-order traversal with alternating direction. The root level is listed from left to right, the next level from right to left, and the direction continues to alternate at every depth.