Write an algorithm in pseudocode called copyStack that copies the contents of one stack into another. The algorithm passes two stacks, the source stack and the destination stack. The order of the stacks must be identical. (Hint: Use a temporary stack to preserve the order.)
Write an algorithm in pseudo code that reverses the contents of a queue.