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