Everly Health Interview Question

They asked me to code