You are given a stack with n integers. If you need to delete the kth element from the bottom of the stack, how should the remaining elements be printed?

(a) In the order they were inserted into the stack, starting from the top.
(b) In the reverse order they were inserted into the stack, starting from the top.
(c) In the order they were inserted into the stack, starting from the bottom.
(d) In the reverse order they were inserted into the stack, starting from the bottom.

Q&A Education