Implemented Problem18
Implemented problem 67 (with same solution as problem 18)