Solve the programming task below in a Python markdown code block.
Complete the `greatestProduct` method so that it'll find the greatest product of five consecutive digits in the given string of digits.

For example:

The input string always has more than five digits.

Adapted from Project Euler.
Also feel free to reuse/extend the following starter code:
```python
def greatest_product(n):
```