Domanda di colloquio di Goldman Sachs

HackerRank coding assessment with two questions.