About implementation of algorithm?

Can you answer this question?