All Substring Of String Leetcode Problems Javascript W3schools