IdeoDigital interview question

Data structure In computer science. The question was about traversing structure of stack type.