And Sorting Codeforces Solution