Task: Program Execution
Input (English): Q, 1, p, a, v, Q
Output (English): [['Q', '1', 'p', 'a', 'v'], ['Q', '1', 'p', 'a', 'Q'], ['Q', '1', 'p', 'v', 'Q'], ['Q', '1', 'a', 'v', 'Q'], ['Q', 'p', 'a', 'v', 'Q'], ['1', 'p', 'a', 'v', 'Q']]