Given an unsigned integer, give me the next number only using 3's and 5's. Example, I give your 7, you give me 33, I give you 34, you give me 35. Write a program on how you'd do this...
Implement def next_number(n): and return the smallest integer strictly greater than n whose decimal representation contains only 3 and 5. The input is a non-negative integer, and the output is an integer. For example, next_number(35) returns 53, while next_number(333) returns 335.
def next_number(n):