Topic: Bit Manipulation Problem / Level: advanced

Problem: Implement a function to determine the total number of distinct bit patterns that can be formed with n bits.

Run the code to see the output here...