Didn't need reduce here
Problem #4 in Python
No python 3 support