Pregunta de entrevista de Pipedrive

Technical algorithm questions. for example, sorting arrays