HealthVerity Interview Question

Pretty straightforward algorithm questions