solve 10th problem