Contentsquare interview question

Big O notation and cost of an algorithm