Task: Program Execution
Input (English): h, 109, 71, 289, l, 387, 297, l, g
Output (English): 0, 1, 2, 3, 7, 8, 9