Added the solution to the first exercise.
Added solution to exercise.