Task: Program Execution
Input (English): 3, 5, ['D', 'e', 'v', 'H', 'Q', 'D', 'w']
Output (English): vHQ