https://romankurnovskii.com/en/tracks/algorithms-101/leetcode/medium/1488/
1488. Avoid Flood in The City