Hex to Decimal (CodeEval)