Ranked voting will decide a pivotal congressional race. How does that work?

Maine's ranked-choice voting system is being used to determine a congressional race winner between Rep. Jared Golden and challenger Austin Theriault. A recount is requested as the trailing candidate waits for over 12,000 votes to be reallocated to establish a majority.