HealthVerity interview question

Pretty straightforward algorithm questions