Task: Program Execution
Input (English): S, P, 5, 2, h, 5
Output (English): [['S', 'P', '5', '2', 'h'], ['S', 'P', '5', '2', '5'], ['S', 'P', '5', 'h', '5'], ['S', 'P', '2', 'h', '5'], ['S', '5', '2', 'h', '5'], ['P', '5', '2', 'h', '5']]