The mastermind’s safehouse is at the top of a towering staircase. The only way to reach the safehouse is by climbing the stairs, and the guards have set a rule: you can climb either 1 or 2 steps at a time. Determine how many distinct ways you can climb to the top.
Input is denoted by an integer n, the total number of steps in the staircase.
Input: n = 5
Input: n = 25
Input: n = 1000
Submit Here