- Move code logic to increment series in else.
- Create NeagtiveNumber exception class to raise a custom exception.