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.