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