Task: Program Execution
Input (English): M, d, G
Output (English): [['M', 'd'], ['M', 'G'], ['d', 'G']]