http://www.fullstackprep.dev/articles/dsa/array/sorted-array-time-complexity