Pregunta de entrevista de Intellect Design Arena

Binary search code. and find error in it