Task: Program Execution
Input (English): 3, 1, 9, 3, 5, P
Output (English): [['3', '1', '9', '3', '5'], ['3', '1', '9', '3', 'P'], ['3', '1', '9', '5', 'P'], ['3', '1', '3', '5', 'P'], ['3', '9', '3', '5', 'P'], ['1', '9', '3', '5', 'P']]