Day 22/100 — First and Last Occurrence using Binary Search

Binary Search isn’t limited to finding whether an element exists. One of its most common interview applications is finding the first and…