Task: Program Execution
Input (English): 3, Q, 0, G
Output (English): [['3', 'Q', '0'], ['3', 'Q', 'G'], ['3', '0', 'G'], ['Q', '0', 'G']]