Task: Program Execution
Input (English): Q, 5, n, q
Output (English): [['Q', '5', 'n'], ['Q', '5', 'q'], ['Q', 'n', 'q'], ['5', 'n', 'q']]