Get Equal Substrings Within Budget Leetcode Problems On Arrays