steps to 0 to count the number of steps.num is greater than 0:
a. Check if num is even by using num % 2.
b. If num is even, divide it by 2.
c. If num is odd, subtract 1 from it.
d. Increment steps by 1.num is reduced to 0, return the steps count.