Myriad Genetics Interview Question

Write an algorithm to solve this fairly simple problem.