I am not able to solve this problem..can you please send the code and explain

question:

SanketAndStrings( Coding Blocks Question)

https://www.geeksforgeeks.org/maximum-length-substring-having-all-same-characters-after-k-changes/#:~:text=When%20count%20will%20be%20equal,finally%20return%20the%20maximum%20length.
Please refer to this link.

still not able to understand logic of the question…can you explain in simple words

Did you understand the question completely?