Mapping the Swaps

Problem Number: 
331
Type of Problem: 
Problem Category: 
Input: 
Random Input
0
0
Critical Input: 
Random Input: 
5 1 2 4 5 3 5 1 5 4 2 3 5 2 1 4 3 5 5 2 1 5 3 4 5 4 5 2 1 3 0
Problem Id: 
331