Cognizant Interview Question

sample program on queue and stack