Jane Street interview question

Short exercise involving data processing.