Task: Program Execution
Input (English): 7, 2, m, P
Output (English): [['7', '2', 'm'], ['7', '2', 'P'], ['7', 'm', 'P'], ['2', 'm', 'P']]