Task: Program Execution
Input (English): R, E, i, m
Output (English): [['R', 'E', 'i'], ['R', 'E', 'm'], ['R', 'i', 'm'], ['E', 'i', 'm']]