Pergunta de entrevista da empresa IMC Trading

Hackerrank is a variant on the knight horse problem.