VOn neuman decimal to binary conversion

One test case remains failed,link is attatched for the code;

Gautam , plz remove these constraints, if(bin>=0&&bin<=1000000000){
and if(n<=1000&&sizeof(n)<=4) and then try to submit your code …