Substrings Of Size Three Leetcode 1501