Task: Program Execution
Input (English): 4, 4, ['D', '835', '5927', 'V', 'd']
Output (English): V