Question: What is the worst-case time complexity of sorting a stack using another stack?
Options:
Correct Answer: O(n^2)
Solution:
The worst-case time complexity of sorting a stack using another stack is O(n^2) due to the need to repeatedly pop and push elements.