Maximum Odd Binary Number Leetcode Problems Javascript