Task: Program Execution
Input (English): Q, 0, 9, d
Output (English): [['Q', '0', '9'], ['Q', '0', 'd'], ['Q', '9', 'd'], ['0', '9', 'd']]