WebMD Health interview question

Look at some awkwardly written method and optimize/fix it