Microsoft interview question

How would I implement XYZ?