add problem 19 to php, python, and ruby