Added tests for Problems 12, 13, 14, 15 and 16
Added solution for Problem 18