Vector Interview Question

Converting a hex number to dec