Question: What is the primary purpose of a stack in the context of binary tree traversal?
Options:
Correct Answer: To implement recursion
Solution:
A stack is used to implement recursion iteratively, allowing for depth-first traversal of the binary tree.