from typing import List
from typing import Tuple


def choose_page(btn_click_list: List[Tuple[int, str]]) -> str:
    """
    Given a list of tuples of (num_clicks, next_page) choose the next_page that
    corresponds to exactly 1 num_clicks.

    This is to help with deciding which page to go to next when clicking on one
    of many buttons on a page.

    The expectation is that exactly one button will have been clicked, so we get
    a deterministic next page.

    :param btn_click_list: List of tuples of (num_clicks, next_page).
    :return: The id of the next page.
    """
    for tup in btn_click_list:
        if tup[0] == 1:
            return tup[1]
    raise ValueError(
        "No clicks were detected, or the click list is misconfigured: {}".format(
            btn_click_list
        )
    )