Domanda di colloquio di Oscar Health

A medium difficulty questions from leetcode