Pregunta de entrevista de Oscar Health

A medium difficulty questions from leetcode