Maximum GCD Sum After Destroying a Root Path

Company: Tower research

Difficulty: medium