Test case not passing array chall 1

one test case is not passing tried many times kindly help…here is the link to the codehttps://ide.codingblocks.com/s/124400

use long long int instead of int because constraints are large