None of the test cases are passing

solve function is passing in leetcode but i think there is catch here with the input format. I took a string and then formed it into a vector of numbers but still it is giving wrong answer while running custom inputs give correct ans.

@manuu_98
Actually Your code is correct but there is mistake in question itself. You don’t have to print “true” or “false” but you have to print “True” or “False”. First alphabet capital. Doing this will pass all testcases