Added ability to run functions directly from command line

Make it easy to test functions like this:

    $ ./problems.py 'blastoff(4)'
    Running command: blastoff(4)
    4
    3
    2
    1