LeetCode
Longest Substring with At Least K Repeating Characters
Click
here
for an explanation.