Generate All Substring Leetcode Javascript Problems For Practice