The question statement is wrong

This is the example input

Input : 12121
Output : True

Input : 123
Output : False

When I test the code it says that I returned True, but it expected 1

Click here to start solving coding interview questions