Leetcode Arrays And Strings Leetcode Problems Javascript