Task: Program Execution
Input (English): j, n, g, r
Output (English): [['j', 'n', 'g'], ['j', 'n', 'r'], ['j', 'g', 'r'], ['n', 'g', 'r']]