Given two strings s and t which consist of only lowercase letters.
String t is generated by random shuffling string s and then add one more letter at a random position.
Find the letter that was added in t.
public char FindTheDifference(string s, string t) {
int ss = 0;
int tt = 0;
for (int i = 0; i < s.Length; i++)
{
ss += s[i] - 'a';
}
for (int j = 0; j < t.Length; j++)
{
tt+= t[j] - 'a';
}
char p = Convert.ToChar('a'+ (tt - ss));
Console.WriteLine(p);
return p;
}