Arrowstreet Capital interview question

A leetcode hard DSA question