Corner Test Case

for the question: CodeChef: Practical coding for everyone , my solution is giving Wrong Answer: CodeChef: Practical coding for everyone

I cant understand which test cases am I failing

Please help.

Input:

1
4
2 1 4 5

Your Output: 2 1 0 -1
Expected Output: 2 3 4 5