Driver code
public static void Main ( String [ ] args ) { int [ ] arr = new int [ ] { 2 , 3 , 5 , 4 , 5 , 2 , 4 , 3 , 5 , 2 , 4 , 4 , 2 } ; int n = arr . Length ; Console . WriteLine ( getOddOccurrence ( arr , n ) ) ; } }