Task: Program Execution
Input (English): G, m, A, P
Output (English): [['G', 'm', 'A'], ['G', 'm', 'P'], ['G', 'A', 'P'], ['m', 'A', 'P']]