Haha so I posted an answer to this really quickly and it turned out I was completely wrong so I deleted it, but now I am fairly confident I actually found a legitimate problem with your code.
Hint : the sequence zyx…cba has only 25 positions where the character at that position comes alphabetically later than the character immediately after it. Not 26!!