Update stack and queue example

We don’t need to implement another interface for stack and queue. We
can just keep the Sequence and do the stack and queue operation.