Get Equal Substrings Within Budget Leetcode 150