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