Solve the problem