Concept Flow - Climbing Stairs Problem
Start at step 0
Can climb 1 or 2 steps
Calculate ways to reach step i
ways[i
Repeat until step n
Return ways[n
We start at step 0 and calculate the number of ways to reach each step by adding ways to reach the previous two steps until we reach step n.
