Paint House 2 - N houses with k colors with no two adjacent houses with same color color

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