Pregunta de entrevista de Accenture

array, sorting question as well as a binary search question