PayU interview question

Convert binary into decimal