Niyaz Nigmatullin's submission of Sherlock and Inversions | CodeChef