Texas Instruments Interview Question

They to reverse a hexadecimal number