Adobe Interview Question

Stack reversal without using any data structure basic concepts of C++ and OOPS