solve 17th problem