Topic: Bit Manipulation Problem / Level: advanced

Problem: Create a function to count how many distinct values can be formed by permuting the bits of a given number.

Run the code to see the output here...