Leetcode Sum Of Distances From Vertices Of A Rectangle