Maciej Dulęba's submission of Inversion sorting | CodeChef