Triangle Summation

Company: DeShaw_5july

Difficulty: medium