Why this solution is wrong for this problem?

Why this solution is wrong for this problem?
http://codeforces.com/problemset/problem/112/A

@cbcao263 hey ,actually apke logic me problem as A and a are same so uske hisaab se modify kro code ko ,also you may use this:


Sir Please check this now, I have used the logic here is first I checked if it is a character and then checked about the difference. Whenever I try to pass on Codeforces, It is showing Wrong Test Case 5. Why so?

@cbcao263 hey ,this logic still cant work as you have still not taken the case whwn one element is a and other is A in another string ,difference can also be 32 of any two ascii values ,see this logic or directly use function in competitive programming:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.