Point72 interview question

similar to leetcode 75 problems basically