Adding a solution for Problem018.
Also solved Problem067 with the same solution used in Problem018 :-D