Jane Street Interview Question

Coding with matrices (leetcode medium)