Simply interview question

Leet code simulating the battleship board game