Complete problem 3 - elementAt