Sentinel Loop Pattern

Fixing ZeroDivisionError

Let's allow all negative numbers

Alternative Idea