Task: Program Execution
Input (English): 7, 10, ['F', 'A', '3107', 'V', 'h', '2365', '4249', 'p', 'u', 'h', '9247', 'y', 'H']
Output (English): hup4249