Error in test case

it is working perfectly fine in the CB- IDE (I tried all p nad c’s of inputs) but here it is not passing all the test cases

hello @gauravgm10
wait i m manually verifying ur output with test file output

hey basically u need to run ur code for t test cases.

here is ur updated code->