Amazon Interview Question

I received a webpage pagination question which revolved around implementing a stack/queue data structure.