You can write your algorithm with an IDE (Integrated Development Environment), or with a simple text editor if you are fluent with the language you are using.
If the real question is "Can you write this algorithm for me", answer is no.
Reasons for that can be found here:
CodeProject QA FAQ[
^]
What have you tried?[
^]