provided solution for 11-th problem