[Problem] We define the following terms: Lexicographical Order, also known as alphabetic or dictionary order, orders characters as follows: A < B < ... < Y < Z < a < b < ... < y < z For example, ball < cat, dog < dorm, Happy < happy, Zoo < ball. A substring of a string is a contiguous block of characters in the string. For example, the substrings of abc are a, b, c, ab, bc, and abc. Given a stri..