Two Sigma Interview Question

The classic Knight on a numpad question.