Topic: Bit Manipulation Problem / Level: advanced

Problem: Continuing with advanced-level questions on bit manipulation:

Run the code to see the output here...