Reverse Bits

Given a non-negative integer num, write a program to return the number obtained after reversing the bits of num. Example 1 Example 2 Solution In Python