Let's start from, what do you know how to do already? Can you write something very simple, such as a program that prints a line of text (say, 'Hello, World!', to give one well-worn example)?
Getting to the assignment at hand, do you know how to write a for loop? Can you declare a simple variable? What about an array variable? Do you know how to write a simple procedure, and how to pass an argument to it?