I have given 2 numbers. Lets call them A and B. The number A is very large (which may be in range of -10^20 to 10^20) and the second number B is normal 32 bit integer. So, it is very clear that I can't do it with long long int. I have to determine if A is divisible by B. I tried to put A on a string. But I really don't know how to approach now. I tried this way.
Lets assume
A=1332 and B =3.;
Now sum of the digits of A is = 1+3+3+2 =9.
As 9%3==0
the answer is yes.
But this is not working all the time. I don't know what should I do now.