IMC Trading Interview Question

Combinatorics problem in a battleship context