Task: Program Execution
Input (English): 1, Q, g, r
Output (English): [['1', 'Q', 'g'], ['1', 'Q', 'r'], ['1', 'g', 'r'], ['Q', 'g', 'r']]