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