HackerRank in a String!

  • + 1 comment

    Nice idea to store the next required character in j and increment each time the letter is found. I popped characters from a stack instead, but this is also elegant.