Sum of Distances

Company: BNY Mellon_6oct

Difficulty: hard