Topic: Stack Problem / Level: intermediate

Problem: Implement a function to reverse every second group of elements in a stack without using any auxiliary data structures.

Run the code to see the output here...