Adding solution to problem 48

Python's pow function kind of removes the fun by taking a third parameter.