Convert a hexadecimal number to decimal.
Implement def hex_to_decimal(hex_str):. The input is a non-empty string containing hexadecimal digits 0-9, A-F, or a-f, without a sign or prefix. Return its equivalent non-negative decimal integer.
def hex_to_decimal(hex_str):