Amdocs interview question

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