Leetcode Array And String Problems In Javascript Regular