The QUIT command stops the command line processor, but does not remove the associated back-end process; to do that, you need to issue the TERMINATE command.
Then print a single line containing the minimal number of swaps of adjacent numbers that are necessary to sort the given sequence. Terminate the output for the scenario with a blank line.