Two Sigma Interview Question

Leetcode 1 easy, 2 mediums