add problem 20 to php, python, and ruby