Hackerblock link https://hack.codingblocks.com/app/contests/987/p/370
It shows runtime error https://ide.codingblocks.com/s/154104
@harshkumar.877587
Your code seems correct and passed all the testcases on the problem link you have mentioned. It didn’t show any runtime error. If you are facing some issue with some other custom testcase , let me know about it so I can help you out.