Substrings Of Size Three Leetcode Problems On Loops