Pergunta de entrevista da empresa Axial

How would you design an algorithm that determines