Pergunta de entrevista da empresa Arcesium

I was asked leetcode easy to mediums, i was asked one question on greedy algorithm and another on binary search algorithm. The first question i was asked to code and the second one i was just asked to write the pseudocode for, which i did.