Starters 27( Doubt)

Question-:Contest Page | CodeChef
Code-:Solution: 59008360 | CodeChef

Help please

1
abb

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