Advisory Board interview question

Algorithm analysis