Brighter interview question

find the big oh for the algorithm in #2