Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a function that swaps the first and last bits of a binary number.

Run the code to see the output here...