Maximum Odd Binary Number Leetcode Solution Python