Mapping
the Swaps
Type: Sorting & Searching Diff: 6.0
Tricks
A
brute force method are required for this problem. You have to
check all the possible swap. Count those which are capable ofsortingthe
array. Normally it is very hard problem but if you think it
recursively, it become easy.