Project 2 - First bonus question

In the first question, are we suppose to present an algorithm solving the question?
Or is an explanation sufficient enough?

You should present an algorithm as a sequence of trivial steps, not as a story.