Humana Interview Question

A problem I solved and how I solved it