Task: Program Execution
Input (English): k, 1, G, d
Output (English): [['k', '1', 'G'], ['k', '1', 'd'], ['k', 'G', 'd'], ['1', 'G', 'd']]