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