+ 1
A common method, assuming you have the complete idea of how the algorithm works, is to draw the flowchart of the process, representing the algorithm as a diagram. You can then proceed to write the pseudocode based on the flowchart you designed. The conversion of pseudocode to code is then self-explanatory.
Also suggested by Hinanawi:
https://www.sololearn.com/Discuss/1461431/?ref=app