program to find first repeating character in an string using C