Leetcode Convert Binary Number To Base