private static void ReverseArray(int[] array) { int temp; int count = array.Length; for (int i = 0; i < count/2; i++) { temp = array[count - 1 - i]; array[count - 1 - i] = array[i]; array[i] = temp; } }