Andrii Maksai's submission of Sherlock and Inversions | CodeChef