When i was using a character array and takin input from cin directly without loop the i was only able to pass 2 test cases.
but as I replaced that with int array and used loop to take input,all test cases were passed.
why this happened??? as it should not matter if it is 5 or ‘5’