solved exercise 2 from arrays

C# Part 2 Lecture 1