Added solution to problem F