Amazon interview question

explain the traversal of stack data structure