Smallest Number With All Set Bits (LeetCode)
Asked in the Round 1: Problem Solving stage. Linked LeetCode problem.
Given a positive integer n, return the smallest integer greater than or equal to n whose binary representation consists entirely of 1 bits.
Implement smallest_number(n), accepting an integer and returning an integer.
def smallest_number(n):