Reverse - Tom Kleen

The outer loop steps through each character in the string and the inner loop also steps through each character in the string. For example if the string is "abca", the outer loop index variable will be set to "a". Then the inner loop will step through the string looking for "a". It will count 2 of them. Save the letter "a" and the number 2. Then ... ................
................