Leetcode 1931. Painting a Grid With Three Different Colors | Hello Interview