The Condorcet explanation that Alex gave was perhaps a little dense, so I’m going to do my best to make this easier to explain.
The trick to Condorcet is the fact that the ballot that you fill out is not actually a ranked ballot, but rather a much larger ballot. A ballot that would look like this:
A -
B -
C -
D -
would actually break down to a bunch of different Conditions:

