Sunday C++ common interview problem: Sonar
You are given access to a ping method on a sonar system.
As quickly as possible, determine the number of ships in the given
area using this method. The method only returns information about
presence (whether any ships are in the given area).
The area includes the borders.
Solve it yourself: https://compiler-explorer.com/z/v4TdoqKc1
Solution: https://compiler-explorer.com/z/4hdW7s933