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