Driver code
public static void Main ( String [ ] args ) { int [ ] arr = { 1 , 0 , 0 , 1 , 0 , 1 } ; int n = arr . Length ; int a = 1 ; int b = 2 ; Console . WriteLine ( findElementsCrossed ( arr , a , b , n ) ) ; } }