SurveyMonkey interview question

Live coding algorithms, basic sql.