Binary To Decimal Leetcode Question 50