Added solution for problem P12