Added solution for problem005.