LPL Financial Interview Question

convert a binary number to an integer