Pergunta de entrevista da empresa Robert Bosch

conver a number from hexadecimal to decimal without using predefined functions