Sereja and Swaps (Implemenation ,Bruteforce,Logic)