Dinesh Goyal's submission of Inversions | CodeChef