Compare The Strings -CODEY504 Why Wrong?

Format your code

This problem makes zero sense. Clearly the author doesn’t know what “lexicographical order” is (and they didn’t even spell it right). I think you should give up on this problem, because it’s very likely that the test data is screwed up like the statement. Even the sample doesn’t make sense, and there’s no explanation for it either.