Postorder Traversal

Given the root of a binary tree encoded as a level-order array, return the postorder traversal of its nodes. Postorder traversal visits left subtree, right subtree, then root. For an array index i, the left child is 2*i + 1 and the right child is 2*i + 2 when those indices exist in the array.

Examples
Input: []
Output: []
Hints

Postorder Traversal

Given the root of a binary tree encoded as a level-order array, return the postorder traversal of its nodes. Postorder traversal visits left subtree, right subtree, then root. For an array index `i`, the left child is `2*i + 1` and the right child is `2*i + 2` when those indices exist in the array.