https://medium.com/@deck451/codility-algorithm-practice-lesson-3-time-complexity-task-1-frog-jump-a-python-approach-b3d9382c39a0