Horizontal interview question

Linked list and stack