Amazon Interview Question

implement linked list using stack