Solved Using A Binarysearch Algorithm See Figure Below

Solved Using A Binarysearch Algorithm See Figure Below