Hudson River Trading Interview Question

Leetcode easy and medium on CodeSignal