Starters 27( Doubt)

Question-:CodeChef: Practical coding for everyone
Code-:CodeChef: Practical coding for everyone

Help please

1
abb

The correct answer for this test is 1, but your code outputs 2.