Rosetta Problems

Number of Ways to Paint N × 3 Grid

https://leetcode.com/problems/number-of-ways-to-paint-n-3-grid