kailash's submission of Inversion sorting | CodeChef