public static void Main()
Console.WriteLine("Hello World");
Console.WriteLine(minimumSwaps(i));
public static int minimumSwaps(int[] arr)
int[] sortedArray = (int[])arr.Clone();
for(int i = 0; i< arr.Length ;i++)
if(arr[i]!=sortedArray[i])
for(int j = i+1; j < sortedArray.Length ;j++)
if(arr[i] == sortedArray[j])
int tempOriginal = arr[i];
int tempNew = sortedArray[j];
sortedArray[j] = tempNew;
numberOfSwap = numberOfSwap+1;