IMC Trading interview question

Combinatorics problem in a battleship context