Aleksey Ropan's submission of Rearrangement | CodeChef