Citadel Securities Interview Question

medium to hard Leet code questions