How to solve it recursively, is it possilbe or not? I tried a long time but dint came up a solution.
Problem Link: https://cses.fi/problemset/task/1636
And what does it mean my this line "the number of distinct ordered ways". It means increaing order or decreasing order?
THanks in Advance