Pergunta de entrevista da empresa IMC Trading

Write a function to determine winner of battleships.