Problem Link: EQDIFFER Problem - CodeChef
I think n(the size of array) = 1 doesn’t makes sense. System has been given control that for n = 1 we have to print 0. But it literally doesn’t make any sense for n = 1.
Apart from that issue , the question is good