Output is correct but showing wrong

For the problem Strong Password Checker(id - 420), the one of the Test case value is "aaaB1" and according to the problem defination output should be 2 and my output is 2 but it's showing 1 as correct output.

image

Pls, help me out with this.

Comments (1)