Time Limit Exceeded
https://ide.codingblocks.com/s/60239
…
Hi Monika, you have not incremented the values of i and j in the while loops at lines 24 and 30. This will result in infinite loops.
Also, you have not printed the ans in the code anywhere. I’ve rectified the errors in your code and made some changes. Go through it and let me know if there are any doubts.
https://ide.codingblocks.com/s/60271
Thank you.
