Task: Program Execution
Input (English): 7, 5, 8, 9, 7, g
Output (English): [['7', '5', '8', '9', '7'], ['7', '5', '8', '9', 'g'], ['7', '5', '8', '7', 'g'], ['7', '5', '9', '7', 'g'], ['7', '8', '9', '7', 'g'], ['5', '8', '9', '7', 'g']]