Jane Street Interview Question

Short exercise involving data processing.