Question d’entretien chez Accenture

useEffect and useState hook in React. Explain Binary Search.