Microsoft interview question

Simulate a d6 with a d10