Pergunta de entrevista da empresa AngelList

Write an algorithm that invests money from a fund for multiple investors, with varying investment commitments. Maximize money invested in total