Custom input is giving the right answer but while submitting is shows different output. Please help in this!


#1

Custom input shows right answer but while submitting it shows different one. Please Help!


#2

Try implementing it without any function calls. I was getting the same error and avoiding the function call fixed it.