Task: Program Execution
Input (English): r, P, r, Z
Output (English): [['r', 'P', 'r'], ['r', 'P', 'Z'], ['r', 'r', 'Z'], ['P', 'r', 'Z']]