Visteon interview question

MC AND MP , Binary to Decimal coding