https://romankurnovskii.com/en/tracks/algorithms-101/leetcode/medium/2222/
2222. Number of Ways to Select Buildings