Task: Program Execution
Input (English): 4, 5, ['B', 'H', 'y', 'y', 'K']
Output (English): Ky