Compiler giving wrong results


#1

When I am going for test option the compiler is giving a wrong answer showing that my function return 4 for input “A” . But when I am testing the code with custom input option for the same input “A” it is showing the correct answer that is 1.