Citadel Securities Interview Question

A DSA medium leetcode question