ASCII is an agreement on which number represents which typographic character. Using this table you can look up the number of any character. For instance, "A" has 65, but that is a decimal. Next step is to represent this decimal number in hexadecimal. You can do that by taking the divisor and remainder of a division by 16. Numbers beyond 9 are represented as a through f. Hexadecimal numbers are commonly prefixed by "0x" to make them recognizable.
So "A" = 65 = 4*16+1 = 0x41
And "Z" = 90 = 5*16+10 = 0x5a
There are ASCII tables that have the hexadecimal value in them, to make the task easier (www.asciitable.com).
If you want to do this programmatically, you can write something like this (node.js):
The food function in the C source code uses two for loop statements to fill and array of size 100 with 100 values ranging from 1 to 100 and the second to get the total sum to the values in the array. With this, two program paths are created.