Horizontal Interview Question

Linked list and stack