Paladion Interview Question

Question on binary search , java basic questions wrt output