provided solution for 20-th problem