Zebra Technologies interview question

Check if a string is a hex or not