Task from Arrays Lecture. Complete to third task