Topic: Stack Problem / Level: advanced

Problem: Implement a dynamic stack system that allows O(1) access to the k-th element from the top of the stack.

Run the code to see the output here...