Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a function that toggles all bits except for the kth bit.

Run the code to see the output here...