springbig interview question

Convert binary number to decimal