Is my code correct?its giving correct output but test cases are not passing

Make the type of array as long long int and then check

long long int is’nt working