Leetcode 1525. Number of Good Ways to Split a String | Hello Interview