Amdocs Interview Question

Give a string stored in a queue, stored the same order in a stack.