Function to find index of value in arr [ start ... end ] The function assumes that value is present in in [ ]
int search ( int arr [ ] , int strt , int end , int value ) { for ( int i = strt ; i <= end ; i ++ ) { if ( arr [ i ] == value ) return i ; } }