Robert Bosch Interview Question

conver a number from hexadecimal to decimal without using predefined functions