Binary To Decimal Leetcode Question