Task: Program Execution
Input (English): c, S, q
Output (English): [['c', 'S'], ['c', 'q'], ['S', 'q']]