Added solution for problem004.