There is a staircase with n steps. You need to reach the top and you can either climb 1 step or 2 steps at a time.
In how many distinct ways can you reach the top of the staircase.
n: 2
Answer: 2
Explanation: [[1, 1], [2]]
n: 4
Answer: 5
Explanation: [[1, 1, 1, 1], [1, 1, 2], [1, 2, 1], [2, 1, 1], [2, 2]]
The first line contains an integer ‘T’ denoting the number of test cases.
For each test case, the input has two lines:
For each test case, the output contains a line with one integer denoting the number of possible combinations.
3
2
3
4
2
3
5
1 <= T <= 45
1 <= n <= 45