':type r: int
:type c: str
:type strs: List[str]
:rtype: int'

def sum(self, r, c, strs):

    self.__reset_dependency(r, c)
    result = self.__calc_and_update_dependency(r, c, strs)
    self.__update_others(r, c, result)
    return result
