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