Pregunta de entrevista de Accenture

useEffect and useState hook in React. Explain Binary Search.