I am probably missing something in the corner cases. (As i am not regular to codechef).
Do the test cases contain the data, outside the limits of the expected inputs (i.e. negative testcases).
In such cases, should I just print 0, or just return 1)
I am coding in C