provided solution for 13-th problem