Chewbacca_number

i am gettig wrong output for first two cases .

@swatiguptasg
Since it is mentioned in the contraints that x can be as large as 10^18 , taking the values as int wouldn’t work since int can only store the data till 10^9. You should use long long int instead of int as it can store values as large as 10^18.