Optiver interview question

scripting challenge