in this method what if we want binary representation of a long long integer value binary representation as 64 digits are required to represent the binary representation ,but ans can represent max of 18 digits only
Limit of the size of ans variable
make the char array of rep. of binary