Task: Program Execution
Input (English): 4, 10, ['M', '3699', '2971', '3625', 'g', '1871', 'Z', 'L', 'e', 'q', 's', 'x', 'w']
Output (English): 3625g1871ZLeq