check for unique characters without extra variables.
Program for reversing the string.