Task: Program Execution
Input (English): p, h, d, f
Output (English): [['p', 'h', 'd'], ['p', 'h', 'f'], ['p', 'd', 'f'], ['h', 'd', 'f']]