Aggresive cow in monotonic search space


in these question answer comes wrong .
please help me…
Answer comes right i use e=mid-1;instead of s=mid+1