Added solution for Problem18.
Added tests for Problem18.
Added one more solution for Problem18.