Ivan's submission of Inversion sorting | CodeChef