Task: Program Execution
Input (English): 5, 5, d, 2
Output (English): [['5', '5', 'd'], ['5', '5', '2'], ['5', 'd', '2'], ['5', 'd', '2']]