Pergunta de entrevista da empresa Spokeo

Asked to write algorithms, and attempt to explain the Big O notation of each one.