@den-sergeyev , i think you misunderstood something.

@sergeyenin , I think it should be

    return find(array, element, left, mid-1);

otherwise you will get infinite recursion in some cases.