using System.Collections;
public void SubArray(int[] arr)
Hashtable sum = new Hashtable();
int[] su = new int[arr.Length];
for (int i = 0; i < arr.Length; i++)
count = count + Convert.ToInt32(sum[s]);
sum[s] = Convert.ToInt32(sum[s]) + 1;
Console.WriteLine(count);
public static void Main()
Program p = new Program();