Microsoft Interview Question

How would I implement XYZ?