Task: Program Execution
Input (English): Q, x, Y
Output (English): [['Q', 'x'], ['Q', 'Y'], ['x', 'Y']]