Prashant Mahesh's submission of The Inversions | CodeChef