LeetCode
Largest Component Size by Common Factor
Click
here
for an explanation.