naveen's submission of Inversion sorting | CodeChef