Leetcode Sum Of Distances From Vertices In Math