Pregunta de entrevista de Toptal

Something about identifying Amicable Numbers