Task: Program Execution
Input (English): 5, 7, X, p, 2, 3, J
Output (English): [['5', '7', 'X', 'p', '2', '3'], ['5', '7', 'X', 'p', '2', 'J'], ['5', '7', 'X', 'p', '3', 'J'], ['5', '7', 'X', '2', '3', 'J'], ['5', '7', 'p', '2', '3', 'J'], ['5', 'X', 'p', '2', '3', 'J'], ['7', 'X', 'p', '2', '3', 'J']]