Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a function to toggle the k-th bit of a number.

Run the code to see the output here...