def index_of_closing_parenthesis(words, start, left_enc ='(', right_enc =')'):
    """Returns index of the closing parenthesis of the parenthesis indicated by start."""
    num_opened = 1
    for i in range(start + 1, len(words)):
        if words[i] == left_enc:
            num_opened += 1
        elif words[i] == right_enc:
            num_opened -= 1

        if num_opened == 0:
            return i
    return -1