What's wrong with the code

Here’s the link to my code-- https://ide.codingblocks.com/s/346713
One testcase is failing for this code, please help me out?

Make it a[0]<=a[1] in the code