WebMD Health Interview Question

Look at some awkwardly written method and optimize/fix it