Task: Program Execution
Input (English): M, P, a
Output (English): [['M', 'P'], ['M', 'a'], ['P', 'a']]