Task: Program Execution
Input (English): x, 5, D, g
Output (English): [['x', '5', 'D'], ['x', '5', 'g'], ['x', 'D', 'g'], ['5', 'D', 'g']]