• + 1 comment

    I believe it allows you to iterate through each char in s. The & is used so that your code actually modifies s instead of operating on a copy of s.

    http://stackoverflow.com/a/15927037/5679756