Pregunta de entrevista de Oscar Health

Regular leetcode kind of coding question