Test Case not passing in my code

Sir I have written the code for Piyush and the magical problem but when I go and submit I few test cases fail. Can you please look at my code and see where I’m going wrong. Thanks in advance.

Hey @Divye-Aggarwal-3050062625037589
Please share ur code in Coding blocks ide :slight_smile:

Sir can you share the link for the same. I’m new to this. :sweat_smile:

@Kartikkhariwal1
bro r u taking this doubt?

I am not sure,let me check :stuck_out_tongue:

Its not with me,u can take this :slight_smile:

ok ,

@Divye-Aggarwal-3050062625037589
pls paste ur code here->https://ide.codingblocks.com/
go to file option(present on top) , there u will get save option , click on it.
a link will be shown in ur search tab , copy that link and share it with me

1 Like

@Divye-Aggarwal-3050062625037589
pls check ur updated code here (comment added)->

1 Like

Thank you so much sir!! That was a stupid error :joy: