add solution for problem 11

Definitely could use some cleaning up.