Added solution to the 10th problem