from typing import List
from typing import Tuple
import operator


def _get_longest_palindrome_boundaries(lps_table: List[int]) -> Tuple[int, int]:
    """Returns real text longest palindrome boundaries based from its lps table.
    """
    center_index, radius = max(enumerate(lps_table), key=operator.itemgetter(1))

    start = (center_index - (radius - 1)) // 2
    end = (center_index + radius) // 2

    return start, end