Microsoft interview question

Write a pseudo code that implement queue and stack