Pergunta de entrevista da empresa Paladion

Question on binary search , java basic questions wrt output