add problem 5 to python and ruby