Mercer Interview Question

How would I fix problem x