add problem 14 to php, python, and ruby