Pergunta de entrevista da empresa Zocdoc

Typical algorithm questions. Nothing extraordinary.