homework 4 js2 task 4,5
DSA Complexity homework