Pregunta de entrevista de Bridgewater Associates

write an algorithm for the game battleship