Meta interview question

One algorithm question and some follow-up questions.