Pergunta de entrevista da empresa Pipedrive

Simple algorithm questions in live coding.