Binary search returns wrong index

Code reviewMedium25 minGoogle style

Your task

Review this Java binary search. It is supposed to return the index of target or -1.