Ad
  • Custom User Avatar

    I think you missed the following sentence in the description:

    "The restriction is that the characters in part1 and part2 should be in the same order as in s, " so having the last two characters in "wasr" switched makes it fail.

    That said, there probably should be more tests verifying this.

    Thanks for raising the question.