Added solution to P67.

It's using the same mathod of solution 18 to solve the problem.