How do you do the algorithm?

Can you answer this question?