provided solution fot 19-th problem