Oscar Health Interview Question

Hackerrank test that was not really hard.