Verified Problem 1 and 2

- Problem 1 is fine.
- Problem 2's solution is incorrect I think, since for the 5th value I'm
getting 2 instead of 3. I've got no idea how they get 3...