Write an algorithm that sets variable bottom equal to the last element in a stack: a. leaving the stack empty. b. leaving the stack unchanged. [Hint: Store the stack elements in another stack as you pop them and then push them back to the original stack.]