Task: Program Execution
Input (English): g, 1, W
Output (English): [['g', '1'], ['g', 'W'], ['1', 'W']]