Driver code
public static void Main ( ) { int [ ] a = { - 1 , 9 , - 5 , - 8 , - 5 , - 2 } ; int n = a . Length ; insert ( a , n ) ; int X = - 5 ; if ( search ( X ) == true ) { Console . WriteLine ( " Present " ) ; } else { Console . WriteLine ( " Not ▁ Present " ) ; } } }