PayU Interview Question

Convert binary into decimal