Task: Program Execution
Input (English): S, 4, N, Q, P, 7
Output (English): [['S', '4', 'N', 'Q', 'P'], ['S', '4', 'N', 'Q', '7'], ['S', '4', 'N', 'P', '7'], ['S', '4', 'Q', 'P', '7'], ['S', 'N', 'Q', 'P', '7'], ['4', 'N', 'Q', 'P', '7']]