Question description
You are given a string of length , consisting of only lowercase English letters.
Find the lexicographically smallest substring of with a length of and output it.
Note:
A substring of a string is a string obtained by removing 0 or more characters from and concatenating the remaining characters in their original order.
The definition of lexicographic order:
Let and be two different strings. is said to be lexicographically smaller than if and only if is a prefix of , or if is the smallest integer such that , and .