Optiver interview question

Leetcode, proba +++, test cognitifs