var climbStairs = function(n) { const m =[1,1,2]; for(let i=3; i<=n;i++){ m[i] = m[i-1]+m[i-2] } return m[n] };