Hex To Decimal conversion challenge