Razorpay interview question

bit manipulation question medium one