Jane Street interview question

Code a stack machine to follow list of instructions.