Add a solution of the 3th problem