Substrings Of Size Three Leetcode Problems Javascript Code