Task: Program Execution
Input (English): Z, x, S
Output (English): [['Z', 'x'], ['Z', 'S'], ['x', 'S']]