Leetcode 2497. Maximum Star Sum of a Graph | Hello Interview