I am trying to upload my code but encounter runtime error Though the same set of code working fine on my system. I have prepare the code as per the guideline of I/p and o/p provided by the codeChef, and I also have consider all the constraints mentioned in the problem statement itself. what should i do? please help…