Task: Program Execution
Input (English): P, 5, 9, d
Output (English): [['P', '5', '9'], ['P', '5', 'd'], ['P', '9', 'd'], ['5', '9', 'd']]