Optiver interview question

technical questions from the tasks