Task: Program Execution
Input (English): 3, 3, ['1327', '9975', 'h', '7143']
Output (English): h