Vector interview question

Converting a hex number to dec