Task: Program Execution
Input (English): Q, K, 0, 9
Output (English): [['Q', 'K', '0'], ['Q', 'K', '9'], ['Q', '0', '9'], ['K', '0', '9']]