Added solution for medium problem
Merge pull request #6 from mccs/october9challenges

Added solution for medium problem