Climbing Stairs
You are climbing a staircase with n steps. Each time you can climb either 1 or 2 steps. Return the number of distinct ways to reach the top.
Two ways are distinct if the sequence of moves differs, so climbing 1 then 2 is not the same as climbing 2 then 1.
n = 2
2
Two sequences reach the top: (1 + 1) and (2).
n = 5
8
The eight sequences are (1+1+1+1+1), (1+1+1+2), (1+1+2+1), (1+2+1+1), (2+1+1+1), (1+2+2), (2+1+2), and (2+2+1).
1 <= n <= 50