CODE NOT WORKING

Hello @dhruv.mahajan.mait what is the logic that you are using in this question you have to just count the number of set bits in the number and that will be the answer to the query.

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.