Health Fidelity interview question

coding exercise