Driver code
static public void Main ( ) { int [ ] arr = new int [ ] { 2 , 3 , 3 , 2 , 5 } ; findCounts ( arr , arr . Length ) ; int [ ] arr1 = new int [ ] { 1 } ; findCounts ( arr1 , arr1 . Length ) ; int [ ] arr3 = new int [ ] { 4 , 4 , 4 , 4 } ; findCounts ( arr3 , arr3 . Length ) ; int [ ] arr2 = new int [ ] { 1 , 3 , 5 , 7 , 9 , 1 , 3 , 5 , 7 , 9 , 1 } ; findCounts ( arr2 , arr2 . Length ) ; int [ ] arr4 = new int [ ] { 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 } ; findCounts ( arr4 , arr4 . Length ) ; int [ ] arr5 = new int [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 } ; findCounts ( arr5 , arr5 . Length ) ; int [ ] arr6 = new int [ ] { 11 , 10 , 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 } ; findCounts ( arr6 , arr6 . Length ) ; } }