Visteon Interview Question

MC AND MP , Binary to Decimal coding