Task: Program Execution
Input (English): Q, r, 1, 7, S
Output (English): [['Q', 'r', '1', '7'], ['Q', 'r', '1', 'S'], ['Q', 'r', '7', 'S'], ['Q', '1', '7', 'S'], ['r', '1', '7', 'S']]