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