Accenture interview question

useEffect and useState hook in React. Explain Binary Search.