Driver code
public static void Main ( ) { int [ ] arr = { 8 , 2 , 4 , 15 , 1 } ; int n = arr . Length ; if ( containsElement ( arr , n ) ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }