Generate All Substrings Leetcode Interview 15000