Driver Code
public static void Main ( String [ ] args ) { char [ ] ar = { ' e ' , ' g ' , ' t ' , ' y ' } ; int n = ar . Length ; char K = ' u ' ; char ch = bs ( ar , n , K ) ; if ( ch == ' @ ' ) Console . Write ( " - 1" ) ; else Console . Write ( ch ) ; } }