Added solution for Problem 7 using "Joda Time" - Java date and time API
from http://www.joda.org/joda-time/