Pregunta de entrevista de Paladion

Question on binary search , java basic questions wrt output