Meta interview question

Coding scripting problem (parsing and editing)