Question: Which data structure would you use to implement a function that checks for balanced parentheses?
Options:
Correct Answer: Stack
Solution:
A stack is ideal for checking balanced parentheses because it allows you to match opening and closing symbols in the correct order.