Cant understand last for loop

we are storing sum of bits of input number to sum array in right to left, then in final o/p for loop why we are using
i=0 to 64
instead
64 to 1 ?

@premang the way we are extracting bits the we will first get the bit at 63rd then the bit at 62th position and so on.
Once we have the bits, now they represent a binary number, now to convert binary to decimal we start at 0th index move towards 63.
If this resolves your doubt mark it as resolved.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.