Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Iterate through all possible consecutive substrings of k characters.
Find the number of changes for each substring to make all blocks black, and return the minimum of these.