Compute board-game score from regions | Airbnb Coding Question