def qgrams_to_char(s: list) -> str:
    """Converts a list of q-grams to a string.

    Parameters
    ----------
    s : list
        List of q-grams.

    Returns
    -------
    A string from q-grams.

    """

    if len(s) == 1:
        return s[0]

    return "".join([s[0]] + [s[i][-1] for i in range(1, len(s))])