Provided a char order like "bcazxf", output whether the order of the chars in the input string is in order or not.
Follow up is the string is very long. How to optimize for the long string?