Buckhill interview question

Algorithm question, can't remember which one