Try to represent problem as index. (For both Arrays and non Array problem)
Do all possible stuff on that index according to the problem statement.
Sum of all stuffs → count all ways
min (of all stuff) → Find min
Connect code with intuition
If standing at 0th stair you can go to only to 1, so return 1.
There are two options you can just one or jump two so call recursion by subtracting 1 or 2 from the index. Name them left and right recursion, left = f (index - 1), right = f(index - 2)