Column Settling Order

Company: Squarepoint / Hackerrank_10thjuly

Difficulty: medium