Question d’entretien chez UnitedHealth Group

How would you apply this coding question situation (from Codility) into a medical setting?