Generate All Substring Leetcode Python Compiler Ide