Add a solution to the 38th problem