Jane Street interview question

Code a stack based compiler