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