Oscar Health Interview Question

Have you seen this coding problem before?