Pergunta de entrevista da empresa Oscar Health

Hackerrank test that was not really hard.