All Substring Of String Leetcode Problems On Arrays In Python