Modern Health Interview Question

How would clean up this code?