Clarivate Interview Question

Write program to convert binary to decimal