Task: Program Execution
Input (English): g, C, S, 0
Output (English): [['g', 'C', 'S'], ['g', 'C', '0'], ['g', 'S', '0'], ['C', 'S', '0']]