Accenture interview question

Stack and Queue question asked.