The printSubstringsLengthN method is a function that prints all the substrings of a given string that have a specific length, N.
printSubstringsLengthN cheat sheet for homework
A sequence of characters, such as "hello" or "APCSA".
A smaller part of a larger string. For example, "lo" is a substring of "hello".
The number of characters in a string or substring.