Amazon interview question

implement linked list using stack