Showing wrong answer on 3 test cases and passing only 2 test cases

@chshubham97 updated your code a little look at this https://ide.codingblocks.com/s/285846.

I understand the changes which you did but why we don’t use
long long int e = log2(n);
long long int ei = (1 << (e + 1)) - 1;

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.