Optiver interview question

Technical Interview Standard LC Hard