Did a candidate get a majority (>50%)?
Yes: They win, the election is over.
No: The candidate who got the least 1st round votes has their supporters 2nd choice votes added on to their supporter's second choice candidate.
Does a candidate have a majority now?
Yes: They win, the election is over.
No: Repeat with those who had the least votes in subsequent 'rounds' until there is someone who has a majority.