Pregunta de entrevista de Amazon

Implement stack and queue with the help of priority queue