Generate All Substring Leetcode Python Compiler With Matplotlib