Garmin interview question

Convert a given decimal number to hex.