276. Paint Fence
Count the number of ways to paint n fence posts with k colors such that no more than 2 adjacent posts have the same color.
Count the number of ways to paint n fence posts with k colors such that no more than 2 adjacent posts have the same color.