Task: Program Execution
Input (English): M, 4, a, q
Output (English): [['M', '4', 'a'], ['M', '4', 'q'], ['M', 'a', 'q'], ['4', 'a', 'q']]