Function to return the index of the key in arr [ l . . h ] if the key is present otherwise return - 1
int search ( int arr [ ] , int l , int h , int key ) { if ( l > h ) return -1 ; int mid = ( l + h ) / 2 ; if ( arr [ mid ] == key ) return mid ;