Added log for problem 18
Added log for problem 18