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