public static void PerformSwap(int[] arr, int i, int j)
public static void Main()
int[] result = new int[str.Length+1];
while (index < str.Length)
result[index + 1] = val++;
PerformSwap(result, currentI, index);
PerformSwap(result, currentI, index);
for (int k=0; k <= str.Length; k++)
Console.Write(result[k]);