Task: Program Execution
Input (English): 1, Q, D
Output (English): [['1', 'Q'], ['1', 'D'], ['Q', 'D']]