Task: Program Execution
Input (English): 5, 7, 0, M
Output (English): [['5', '7', '0'], ['5', '7', 'M'], ['5', '0', 'M'], ['7', '0', 'M']]