Jane Street interview question

Specifically, it was a problem involving stacks.