Mercer interview question

How would I fix problem x