Task: Program Execution
Input (English): G, 3, N, d
Output (English): [['G', '3', 'N'], ['G', '3', 'd'], ['G', 'N', 'd'], ['3', 'N', 'd']]