Task: Program Execution
Input (English): m, z, d, K
Output (English): [['m', 'z', 'd'], ['m', 'z', 'K'], ['m', 'd', 'K'], ['z', 'd', 'K']]