Generate All Substrings Leetcode Python Challenges For Intermediate