How do you do arrays and an expanded algorithm

I need help with arrays and expanded alogorithm