Task: Program Execution
Input (English): W, 7, 4, 2, h, L, d
Output (English): [['W', '7', '4', '2', 'h', 'L'], ['W', '7', '4', '2', 'h', 'd'], ['W', '7', '4', '2', 'L', 'd'], ['W', '7', '4', 'h', 'L', 'd'], ['W', '7', '2', 'h', 'L', 'd'], ['W', '4', '2', 'h', 'L', 'd'], ['7', '4', '2', 'h', 'L', 'd']]