Paint House 1 - N houses with 3 colors with no two adjacent houses with same color color

Paint House 1 - N houses with 3 colors with no two adjacent houses with same color color - Coding Problem | K5kC