Getting error in test case 2,3

x can be very large try using long long int