Find number of ways to color N boxes with M colors such that every K consecutive box have different colors.
I was asked this question a week ago, but still didn\'t ge