Point72 Interview Question

similar to leetcode 75 problems basically