Add examples for the problem from exercise12
Add solution to the problem from exercise12