Pergunta de entrevista da empresa IMC Trading

Combinatorics problem in a battleship context