Jane Street Interview Question

Was basically implementing a stack machine but got more complicated, like how to transform a program and add instructions to add a feature or something.