LeetCode
Get Equal Substrings Within Budget
Click
here
for an explanation.