Task: Program Execution
Input (English): 5, 2, m, J, x, G
Output (English): [['5', '2', 'm', 'J', 'x'], ['5', '2', 'm', 'J', 'G'], ['5', '2', 'm', 'x', 'G'], ['5', '2', 'J', 'x', 'G'], ['5', 'm', 'J', 'x', 'G'], ['2', 'm', 'J', 'x', 'G']]