Binary Search solution | ScratchStats