Rev interview question

Implement a queue using linked-list style nodes and as a stack.