Task: Program Execution
Input (English): Q, 6, 4, J, 6, M
Output (English): [['Q', '6', '4', 'J', '6'], ['Q', '6', '4', 'J', 'M'], ['Q', '6', '4', '6', 'M'], ['Q', '6', 'J', '6', 'M'], ['Q', '4', 'J', '6', 'M'], ['6', '4', 'J', '6', 'M']]