Reaching points - Leetcode

I was going through different approach than recursion and found a code in discussion page. Can u help me understand a part of code in this

ques-> https://leetcode.com/problems/reaching-points/

code->https://ide.codingblocks.com/s/225476

i want to know what’s the use of the multiplication term in this?