Question d’entretien chez Bridgewater Associates

write an algorithm for the game battleship