Task: Program Execution
Input (English): K, g, x
Output (English): [['K', 'g'], ['K', 'x'], ['g', 'x']]