SenseTime interview question

Write the pseudo code for the sampling process of a Diffusion model.