Getting runtime error

can you please explain what is wrong with my code

@chitranshanmol07,

while(out[j]!='\0'){
        count+=out[j];
    }

In this loop, you are not incrementing j.