Task: Program Execution
Input (English): Q, 4, 1, G, N
Output (English): [['Q', '4', '1', 'G'], ['Q', '4', '1', 'N'], ['Q', '4', 'G', 'N'], ['Q', '1', 'G', 'N'], ['4', '1', 'G', 'N']]