Oscar Health interview question

Have you seen this coding problem before?