Queries regarding question

i want to know if the string would always be in lexicographical order or it could be like these also:
eg:

  1. aabaabcda
    2.adbcaa