Adding functional solution that runs a lot faster than initial.
Adding skeleton file for problem 5.