Solution for Hex to Decimal.