Maximum Inversion Distance

Company: Google

Difficulty: medium