[Beauty of Programming]

use the stack to build a queue