Algorithm is part of computer science. You an learn it on Khan academy. (you probably werent looking for this but no one was answering)
Do you go to BASIS?
Sorry I don't have an answer for you, but we have the same assignment in our AP Comp sci class.
Just wondering.