KCG Interview Question

Puzzles, math, algorithms