Humana interview question

A problem I solved and how I solved it