Solving in a brute force way the battleship example for the PeopleCo programming challenge