Implementation of custom queue using 1 and 2 stacks