Task: Program Execution
Input (English): 2, ['p', 'Q', 's', 'g']
Output (English): p, Q