Arrowstreet Capital Interview Question

A leetcode hard DSA question