Cisco interview question

Diff bet heaps n stacks