Code for implementing Queue with the help of Stacks