Sum of ascii values of string in c