Ian And Array Sorting Codeforces