>>417
static int find(int[] a, int n,int s,int x){
    if(s>=n){return -1;}
    for(;s<n;s++){
        if(a[s]==x){return s;}
    }
    return -1;
}