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