Task: Program Execution
Input (English): 2, 3, ['Q', 'k', 'N']
Output (English): Nk