Create problem 12

Naive algorithm. Takes forever to calculate.