IMC Trading interview question

Leetcode type questions