provided solution to the 9-th problem