Thomson Reuters interview question

Find big Oh of code