using System.Collections.Generic;
public static void Main()
int[] array = {1, 0, 3, 0, 2};
int[] ans = ZeroToEnd(array);
Console.WriteLine("Array line : "+ string.Join(",", ans));
static int[] ZeroToEnd(int[] array)
for (int i = 0; i < array.Length; i++)
array[nonZeroIndex] = array[i];
for (int i = nonZeroIndex; i < array.Length; i++)