Generate All Substrings Leetcode Interview Problems