Task: Program Execution
Input (English): 4, 8, 4, 5, M
Output (English): [['4', '8', '4', '5'], ['4', '8', '4', 'M'], ['4', '8', '5', 'M'], ['4', '4', '5', 'M'], ['8', '4', '5', 'M']]