Task: Program Execution
Input (English): 5, 7, ['e', 'Q', 'j', 'h', '1757', 'k', '2503']
Output (English): 4260