Pergunta de entrevista da empresa Bridgewater Associates

write an algorithm for the game battleship