IMC Trading Interview Question

Hackerrank is a variant on the knight horse problem.