Optiver interview question

Don't remember completely but practice leetcode