Solution to Problem 10. Not fast, but solves the problem
updated readme