from typing import Tuple
from typing import List
from typing import Set


def _get_repeating_chars_count(box_id: str) -> Tuple[int, int]:
    """Returns a tuple (twice_repeated, thrice_repeated)
    twice_repeated, thrice_repeated - 1 - atleast 1 character is repeated twice exactly
                   - 0 No character is repeated exactly twice in the id
    Arguments:
        box_id {String} -- Box id containing lowercase alphabets only
    Returns:
        [Tuple(int, int)]
    """
    counting_bucket: List[int] = [0] * 26
    char_code_start: int = ord("a")

    for letter in box_id:
        counting_bucket[(ord(letter) - char_code_start)] += 1

    unique_char_counts: Set[int] = set(counting_bucket)
    return int(2 in unique_char_counts), int(3 in unique_char_counts)