Flatiron Health Interview Question

Two coding questions. The interviewer was very helpful and gave some useful tips.