Task: Program Execution
Input (English): Q, f, Z, d
Output (English): [['Q', 'f', 'Z'], ['Q', 'f', 'd'], ['Q', 'Z', 'd'], ['f', 'Z', 'd']]