Pergunta de entrevista da empresa Bentley Systems

Write an algorithm in psuedocode