WorldQuant Interview Question

a few leetcode style questions