Topic: Bit Manipulation Problem / Level: beginner

Problem: Implement a function to toggle every k-th bit in a binary number.

Run the code to see the output here...