Leetcode 1274. Number of Ships in a Rectangle | Hello Interview