Task: Program Execution
Input (English): 4, 4, ['7729', '6857', 'Q', 'W']
Output (English): W