How can you count the occurrences of x in a sorted array in Olog n? | Searching and Binary Search question · AnyPrep