Yahoo Interview Question

How to implement deq and enq using the stack interface?