using System.Collections.Generic;
public static void Main()
Dictionary<int, int> dict = new Dictionary<int,int>();
int[] a = new int[]{1,5,4,3,2};
int[] copy = new int[a.Length];
for(int i = 0; i<a.Length; i++)
for(int i=0; i<copy.Length; i++)
for(int i=0; i<a.Length;i++)
int pos = dict[a[i]] - 1;
Console.WriteLine("Number of swaps:"+swaps);