HealthCare.com interview question

Basic optimizing algorithm. System design