Bloomberg interview question

linked lists, problems using stacks