Cognizant Interview Question

questions on stacks and queus