Task: Program Execution
Input (English): 2, 5, ['3097', 'w', 'D', 'G', 'o', '6571', '3277']
Output (English): oGDw