Rosetta Problems

Painting a Grid With Three Different Colors

https://leetcode.com/problems/painting-a-grid-with-three-different-colors