Amazon Interview Question

explain the traversal of stack data structure