Task: Program Execution
Input (English): 5, 8, ['r', '6841', 'g', '2149', 'o', 'S', '8767', 'c', '4103', 'w', 'P', 'v', '7057']
Output (English): c7678So