Revature interview question

questions on time complexity, oops